package com.warren.test;

/**
 * @version V1.0
 * @Description:
 * @author: warren
 * @date: 2022/7/25$ 17:13$
 */
public class Generic1 {
    public <T> void show(T t) {
        System.out.println(t);
    }

    public int sum(int ...a) {
        int b = 0;
        for (int item : a) {
            b = b + item;
        }
        return b;
    }
}
